package com.zzxx.mapper;

import com.zzxx.pojo.UserInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

	@Select("select * from users")
	List<UserInfo> findAll();

	@Select("select * from users where username = #{username}")
	UserInfo findByUsername(String username);
}
